﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace parkMonitor.entity
{
    class AddressesForCore
    {
        public int equipmentStatus_address { set; get; }
        public int park_completed_address { set; get; }
        public int parkingEntX { set; get; }
        public int parkingEntY { set; get; }
        public int parkingEntZ { set; get; }
        public int fetch_completed_address { set; get; }
        public int wheelbase_status_address { get; set; }
        public int parking_startRobot_address { get; set; }
        public int fetching_startRobot_address { get; set; }
        public int frontWheelbase_address { get; set; }
        public int rearWheelbase_address { get; set; }
        public static AddressesForCore ins = new AddressesForCore();
        public AddressesForCore()
        {
            parking_startRobot_address = Convert.ToInt32(ConfigurationManager.AppSettings["parking_startRobot_address"]);
            fetching_startRobot_address = Convert.ToInt32(ConfigurationManager.AppSettings["fetching_startRobot_address"]);
            equipmentStatus_address = Convert.ToInt32(ConfigurationManager.AppSettings["equipmentStatus_address"]);
            park_completed_address = Convert.ToInt32(ConfigurationManager.AppSettings["park_completed_address"]);
            parkingEntX = Convert.ToInt32(ConfigurationManager.AppSettings["parkingEntX"]);
            parkingEntY = Convert.ToInt32(ConfigurationManager.AppSettings["parkingEntY"]);
            parkingEntZ = Convert.ToInt32(ConfigurationManager.AppSettings["parkingEntZ"]);
            //轮距
            frontWheelbase_address = Convert.ToInt32(ConfigurationManager.AppSettings["frontWheelbase_address"]);
            rearWheelbase_address = Convert.ToInt32(ConfigurationManager.AppSettings["rearWheelbase_address"]);
            wheelbase_status_address = Convert.ToInt32(ConfigurationManager.AppSettings["wheelbase_status_address"]);
            //取车完成
            fetch_completed_address = Convert.ToInt32(ConfigurationManager.AppSettings["fetch_completed_address"]);
        }
    }
}
